package com.ebt.m.proposal_v2.dao.file;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Response;

/**
 * @author archer.qi
 *         Created on 2017/6/1.
 */
public class DownloadProgressInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
        Response originalResponse = chain.proceed(chain.request());
        return originalResponse.newBuilder().body(new DownloadProgressResponseBody(originalResponse.body())).build();
    }
}
